import { Map } from 'immutable'

import * as actionTypes from './constants'

const defaultStste = Map({
  rankList: []
})

export default function reducer(state = defaultStste, action) {
  switch(action.type) {
    case actionTypes.RANKLIST:
      return state.set("rankList", action.rankList)
    default:
      return state
  }
}